package com.runen.wnhz.runen.di.module;

import com.runen.wnhz.runen.presenter.Contart.MajorContart;
import com.runen.wnhz.runen.presenter.model.MajorModel;
import com.runen.wnhz.runen.service.HomeApi;
import com.runen.wnhz.runen.service.MajorApi;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2018-05-04.
 */

@Module
public class MajorModule {

    public MajorContart.View view;

    public MajorModule(MajorContart.View view) {
        this.view = view;
    }

    @Provides
    public MajorContart.View provideView(){
        return view;
    }

    @Provides
    public MajorModel provideHomedel(MajorApi apiService){
        return new MajorModel(apiService);
    }
}
